package com.lyw.pojo;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "room_places")
public class Places {

    @Id
    private Long id;
    private Long parent_id;
    private String cname;
    private int ctype;

    public Places() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParent_id() {
        return parent_id;
    }

    public void setParent_id(Long parent_id) {
        this.parent_id = parent_id;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public int getCtype() {
        return ctype;
    }

    public void setCtype(int ctype) {
        this.ctype = ctype;
    }

    @Override
    public String toString() {
        return "Places{" +
                "id=" + id +
                ", parent_id=" + parent_id +
                ", cname='" + cname + '\'' +
                ", ctype=" + ctype +
                '}';
    }

    public Places(Long id, Long parent_id, String cname, int ctype) {
        this.id = id;
        this.parent_id = parent_id;
        this.cname = cname;
        this.ctype = ctype;
    }
}
